<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@page import="loginmysql.*, java.util.*, java.sql.SQLException"%>
<%	
	MysqlLogin.connect();	

	String catVieja = request.getParameter("old");
	String catNueva = request.getParameter("new");
	System.out.println(catVieja + catNueva);
	try{
		MysqlLogin.insert("UPDATE mails SET mail ='"+catNueva+"' WHERE mail='"+catVieja+"'");
		out.print("Ok!");
	}catch(SQLException e){
		out.print("Hubo un error");
	}
	MysqlLogin.disconnect();
%>